import {DatePicker} from "antd";
import FormItem from "antd/es/form/FormItem";
import {DatePickerProps} from "./dev.tsx";
import {removeSetter} from "../../../../utils/removeSetter.ts";

const DatePickerProd =(props:DatePickerProps) => {
    const {styles} = props;
    const ComponentProps = removeSetter({...props},["children","parentId"])

    return (
        <div style={props.styles}>
            <FormItem>
                <FormItem  label={props.label} name={props.name} rules={props.rule} style={{margin:"0" ,...styles}}>
                    <DatePicker {...ComponentProps} />
                </FormItem>
            </FormItem>
        </div>
    );
};

export default DatePickerProd;